﻿
using System.Data.Entity.ModelConfiguration;
using ProjetoComperio.DataLayer.Entities;

namespace ProjetoComperio.DataLayer.Configuration
{
    public class KnowledgeAreaConfiguration : EntityConfiguration<KnowledgeArea>
    {
        public KnowledgeAreaConfiguration()
        {
            Property(ka => ka.KnowledgeAreaID).IsIdentity();
            MapSingleType(u => EntityMap.Row(
          EntityMap.Column(u.KnowledgeAreaID),
          EntityMap.Column(u.Description)
          )).ToTable("KnowledgeArea");

        }
    }
}
